/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.config;

import cn.webrx.service.UserDao;
import org.springframework.context.annotation.*;

/**
 * <p>Project: spring2021 - SpringConfig
 * <p>Powered by webrx On 2021-11-02 16:28:20
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Configuration @ComponentScan(basePackages = {"cn.webrx.service","cn.webrx.entity"})
public class SpringConfig {
    @Bean(name="uu",initMethod = "init",destroyMethod = "close") @Scope("singleton") @Lazy
    public UserDao u1(){
       var u = new UserDao();
       return u;
    }
}
